package com.sneakxy.cloudbase.platform.repository;

import com.sneakxy.cloudbase.platform.bean.Setting;

import org.apache.ibatis.annotations.Delete;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * 个人设置信息数据库接口
 * @author 潜行的青衣
 * @see
 */
@Repository
public interface SettingRepository extends BaseRepository<Setting, String> {

	@Delete("delete from ${tableName} where owner=#{owner} and key=#{key}")
	public int deleteByKey(@Param("owner") String owner, @Param("key") String key, @Param("tableName") String tableName);
	
}
